AGENT_OB = class("AGENT_OB")
AGENT_OB:inherit(F_COMN_DBASE)
AGENT_OB:inherit(F_COMN_ID)

---! 设置网关频道
function AGENT_OB:set_gate_channel(channel)
    return self:set_temp("gate_channel", channel)
end

---! 获取网关频道
function AGENT_OB:get_gate_channel()
    return self:query_temp("gate_channel")
end

---! 获取玩家Id
function AGENT_OB:get_user_id()
    return self:query_temp("login_info", "user_id")
end

---! 获取user_name
function AGENT_OB:get_user_name()
    return self:query_temp("login_info", "user_name")
end

---! 获取nick_name
function AGENT_OB:get_nick_name()
    return self:query_temp("login_info", "nick_name")
end

---! 获取avatar_url
function AGENT_OB:get_avatar_url()
    return self:query_temp("login_info", "avatar_url")
end

---! 设置登录信息
function AGENT_OB:set_login_info(info)
    return self:set_temp("login_info", info)
end

---! 获取登录信息
function AGENT_OB:get_login_info()
    return self:query_temp("login_info")
end

---! 设置登录时间
function AGENT_OB:set_login_time(ti)
    return self:set_temp("login_time", ti)
end

---! 断开连接
function AGENT_OB:disconnect(reason)
end

---! 踢出下线
function AGENT_OB:kickout(reason)
end

function AGENT_OB:__tostring()
    return string.format("AGENT_OB [%s]", self:get_id())
end
